package per.example.arpproject.utils;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author yaozhang Li
 * @ TO DO
 * @creatTime 2022/6/9 17:05
 **/
@Slf4j
@Component
public class TimingTask {

    @Scheduled(cron = "0 0/30 * * * ?")
    private void checkLivingTask(){
        log.info("I still alive");
    }
}
